// プロパティ画面
Ti.include( Ti.Filesystem.resourcesDirectory + '/win_common.js' );		// 画面共通設定
win.title = L('win_title_app_prop');

var data = [];

// http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.App-module
var props = [
['Ti.App.*','header'],
['copyright',Ti.App.copyright],
['description',Ti.App.description],
['guid',Ti.App.guid],
['id',Ti.App.id],
['idleTimerDisabled',Ti.App.idleTimerDisabled],
['name',Ti.App.name],
['proximityDetection',Ti.App.proximityDetection],
['proximityState',Ti.App.proximityState],
['publisher',Ti.App.publisher],
['url',Ti.App.url],
['version',Ti.App.version]
];

for (var i=0; i < props.length; i++) {
	var row = Ti.UI.createTableViewRow({hasChild:false,height:'auto'});
	var row_view = Ti.UI.createView({
		height:'auto',
		layout:'vertical',
		left:5,
		top:5,
		bottom:5,
		right:5
	});

	var prop = Ti.UI.createLabel({
		text : props[i][0],
		font:{fontSize:14, fontWeight:'bold'},
		width:'100%',
		height:'auto',
	});
	row_view.add(prop);
	if (props[i][1] == 'header'){
		prop.color = '#fff';
		row.backgroundColor = '#333';
	}else{
		var val = Ti.UI.createLabel({
			text : "[" + props[i][1] + "]",
			font:{fontSize:13},
			textAlign : 'right',
			width:'100%',
			height:'auto',
		});
		row_view.add(val);
	}
	row.add(row_view);
	data.push(row);
};



// テーブルを作る
var tv = Ti.UI.createTableView({
	data : data
});

win.add(tv);
